feat(actions): setup-rust-toolchain-from-file#1
Open
jgeluk wants to merge 1 commit into
Open
Conversation
Add a composite action that reads the channel from rust-toolchain.toml and installs the toolchain, optionally followed by Swatinem/rust-cache. Every Rust CI job otherwise repeats ~30 lines of boilerplate (sed-parse the channel, call setup-rust-toolchain, call rust-cache) that have no single source of truth and drift independently across jobs. This action collapses that into one uses: line per job, with optional inputs for components, the cache shared-key, and a cache opt-out for lint-only jobs. Inputs: - path default rust-toolchain.toml - components comma-separated rustup components (passed verbatim) - cache "true" (default) or "false" to skip rust-cache - cache-shared-key shared-key passed to Swatinem/rust-cache Output: - toolchain the resolved channel (e.g. nightly-2025-08-29) Includes a README documenting usage, inputs, outputs, failure modes, and the motivation. Indexed under "Setup Actions" in the actions README.
|
✔️ 208ba05 - Conventional commits check succeeded. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Inputs
Output
Failure modes
Test plan
🤖 Generated with Claude Code